import { pushResponseInterceptor } from 'lfun-bg-comp';

pushResponseInterceptor('get:/school/v1/system/get_work_flow_define', r => {
  return [
    {
      process_code: 't_entry',
      node_name: '校开始节点',
      node_code: 't_entry_start_node',
      assign_role: '学校管理员',
    },
    {
      process_code: 't_entry',
      node_name: '校审批节点',
      node_code: 't_entry_school_approval',
      assign_role: '和平中学管理员',
    },
    {
      process_code: 't_entry',
      node_name: '区审批节点',
      node_code: 't_entry_area_approval',
      assign_role: '和平区管理员',
    },
    {
      process_code: 't_entry',
      node_name: '市审批节点',
      node_code: 't_entry_city_approval',
      assign_role: '沈阳市管理员',
    },
    {
      process_code: 't_entry',
      node_name: '入职成功节点',
      node_code: 't_entry_success_end',
    },
  ];
});

pushResponseInterceptor('get:/school/v1/system/work-flow-node-log', r => {
  return [
    {
      node_instance_id: 292,
      process_instance_id: 66,
      process_code: 't_entry',
      teacher_id: 70,
      operator_name: 'asdfasdf',
      operation_time: '2024-06-28T01:35:14.889841',
      action: 'initiate',
      log_instance_id: 156,
    },
    {
      node_instance_id: 292,
      process_instance_id: 66,
      process_code: 't_entry',
      teacher_id: 70,
      operator_name: 'asdfasdf',
      operation_time: '2024-06-28T01:35:14.889841',
      action: 'approved',
      log_instance_id: 156,
      description: '通过',
    },
    {
      node_instance_id: 292,
      process_instance_id: 66,
      process_code: 't_entry',
      teacher_id: 70,
      operator_name: 'asdfasdf',
      operation_time: '2024-06-28T01:35:14.889841',
      action: 'approved',
      log_instance_id: 156,
      description: '通过',
    },
  ];
});
